<template>
  <view class="share">
    <view class="share-title">
      分享给好友
    </view>
    <view class="icons">
      <button class="icon" type="default" open-type="share">
        <image class="icon-img" src="./images/dy.png" mode="heightFix"></image>
        <view class="icon-text">抖音</view>
      </button>
      <button class="icon" type="default" open-type="share">
        <image class="icon-img" src="./images/wx.png" mode="heightFix"></image>
        <view class="icon-text">微信</view>
      </button>
      <button class="icon" type="default" open-type="share">
        <image class="icon-img" src="./images/pyq.png" mode="heightFix"></image>
        <view class="icon-text">朋友圈</view>
      </button>
      <button class="icon" type="default" open-type="share">
        <image class="icon-img" src="./images/qq.png" mode="heightFix"></image>
        <view class="icon-text">QQ</view>
      </button>
    </view>
    <view class="tips">
      优快驾考通 学车第一步选对考题库
    </view>
  </view>
</template>
<style lang="scss" scoped>
  .share {
    width: 100%;
    background-color: #fff;
    padding-bottom: 40rpx;

    .share-title {
      width: 100%;
      font-size: 28rpx;
      color: rgb(139, 139, 139);
      margin: 20rpx 0 46rpx 0;
      text-align: center;
    }

    .icons {
      width: 100%;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      box-sizing: border-box;
      padding: 0 83rpx;

      .icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 64rpx;
        padding: 0;
        background-color: transparent;
        border: none;

        &::after {
          display: none;
        }

        .icon-text {
          font-size: 24rpx;
          color: rgb(24, 24, 24);
          margin-top: 21rpx;
        }

        .icon-img {
          height: 45rpx;
        }
      }
    }

    .tips {
      width: 100%;
      font-size: 32rpx;
      color: rgb(139, 139, 139);
      margin-bottom: 20rpx;
      text-align: center;
    }
  }
</style>
